package com.javacoo.event.client.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 事件处理器注解
 * <li></li>
 *
 * @author: duanyong@jccfc.com
 * @since: 2021/10/19 10:40
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.SOURCE)
public @interface EventHandler {
    /**
     * 当前监听方法是否线程安全
     * <li>如果是线程安全的,则不会同步订阅者对象</li>
     * @author duanyong@jccfc.com
     * @date 2021/11/1 10:35
     * @return: boolean 默认false
     */
    boolean threadSafe() default false;
}
